#ifndef _SERIAL_H_
#define _SERIAL_H_

#include <sys/types.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>

#define DATA 0x00
#define RANGING_REQ 0x01
#define RANGING_RESP 0x02
#define TDMA_REQ 0x03
#define TDMA_RESP 0x04

int set_option(int fd, int nSpeed, int nBits, char nEvent, int nStop);
int open_serial(int fd, int comport);

#endif
